<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <title>利用virt-what工具检测VPS虚拟化技术(转)  &middot; 程序猿的小本本</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">


<meta name="description" content="光说有毛用|程序猿的小本本" />

<meta name="keywords" content="">


<meta property="og:title" content="利用virt-what工具检测VPS虚拟化技术(转)  &middot; 程序猿的小本本 ">
<meta property="og:site_name" content="程序猿的小本本"/>
<meta property="og:url" content="http://replace-this-with-your-hugo-site.com/2015/09/25/virt-what.html" />
<meta property="og:locale" content="en-us">


<meta property="og:type" content="article" />
<meta property="og:description" content=""/>
<meta property="og:article:published_time" content="2015-09-25T10:10:00Z" />
<meta property="og:article:modified_time" content="2015-09-25T10:10:00Z" />

  

  
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@" />
<meta name="twitter:creator" content="@" />
<meta name="twitter:title" content="利用virt-what工具检测VPS虚拟化技术(转)" />
<meta name="twitter:description" content="" />
<meta name="twitter:url" content="http://replace-this-with-your-hugo-site.com/2015/09/25/virt-what.html" />
<meta name="twitter:domain" content="http://replace-this-with-your-hugo-site.com/">
  

<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "Article",
    "headline": "利用virt-what工具检测VPS虚拟化技术(转)",
    "author": {
      "@type": "Person",
      "name": "http://profiles.google.com/+?rel=author"
    },
    "datePublished": "2015-09-25",
    "description": "",
    "wordCount":  59 
  }
</script>



<link rel="canonical" href="http://replace-this-with-your-hugo-site.com/2015/09/25/virt-what.html" />

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://replace-this-with-your-hugo-site.com/touch-icon-144-precomposed.png">
<link href="http://replace-this-with-your-hugo-site.com/favicon.png" rel="icon">
<meta name="theme-color" content="#2053AB">
<meta name="generator" content="Hugo 0.17-DEV" />

  <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<link href='https://fonts.googleapis.com/css?family=Merriweather:300%7CRaleway%7COpen+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://replace-this-with-your-hugo-site.com/css/font-awesome.min.css">
<link rel="stylesheet" href="http://replace-this-with-your-hugo-site.com/css/style.css">
<link rel="stylesheet" href="http://replace-this-with-your-hugo-site.com/css/highlight/default.css">

  
</head>
<body>
  <main id="main-wrapper" class="container main_wrapper has-sidebar">
    <header id="main-header" class="container main_header">
  <div class="container brand">
  <div class="container title h1-like">
  <a class="baselink" href="http://replace-this-with-your-hugo-site.com/">
  程序猿的小本本

</a>

</div>

  
<div class="container topline">
  
  光说有毛用


</div>


</div>

  <nav class="container nav primary no-print">
  

<a class="homelink" href="http://replace-this-with-your-hugo-site.com/">Home</a>


  
<a href="http://replace-this-with-your-hugo-site.com/about">About</a>

<a href="http://replace-this-with-your-hugo-site.com/post" title="Show list of posts">Posts</a>

<a href="http://replace-this-with-your-hugo-site.com/tags" title="Show list of tags">Tags</a>


</nav>

<div class="container nav secondary no-print">
  
<a id="contact-link-email" class="contact_link" href="mailto:chennqqi@qq.com">
  <span class="fa fa-envelope-square"></span><span>email</span></a>



<a id="contact-link-github" class="contact_link" href="https://github.com/chennqqi?tab=repositories">
  <span class="fa fa-github-square"></span><span>github</span></a>

















</div>


  

</header>


<article id="main-content" class="container main_content single">
  <header class="container hat">
  <h1>利用virt-what工具检测VPS虚拟化技术(转)
</h1>

  <div class="metas">
<time datetime="2015-09-25">25 Sep, 2015</time>


  
    &middot; by admin
  
  &middot; Read in about 1 min
  &middot; (59 Words)
  <br>
  


</div>

</header>

  <div class="container content">
  <div>
  <a href="http://www.itbulu.com/virt-what.html">利用virt-what工具检测VPS虚拟化技术 检测是OpenVZ还是Xen</a>老蒋 发布于 1年前 (2014-09-26) 分类：<a title="" href="http://www.itbulu.com/vps/jichu/" rel="category tag">VPS基础应用</a><span class="post-views">阅读(543)</span> 评论(0)</p> 
  
  <p style="margin: 0px 0px 16px;">
    我们在选择VPS主机的时候肯定会看到商家提供方案有提到是用的openvz、xen、kvm等架构技术，具体我们不去讨论这3个常用的技术特点，总之相对而言，openvz可以超售比较多，所以相对成本就低，对于xen和kvm理论上操作可以超售部分，但相对比ovz好一些。
  </p>
  
  <p style="margin: 0px 0px 16px;">
    对于我们购买的VPS，也可能听到的技术不准确，可以用到<a class="tag_link" title="View all posts in virt-what" href="http://www.itbulu.com/tag/virt-what/" target="_blank">virt-what</a>方法来真实的检测。
  </p>
  
  <p>
    第一、下载以及安装<a class="tag_link" title="View all posts in virt-what" href="http://www.itbulu.com/tag/virt-what/" target="_blank">virt-what</a>脚本
  </p>
  
  <p style="margin: 0px 0px 5px; padding: 0px; line-height: 20px;">
    wget http://soft.itbulu.com/tools/virt-what-1.11.tar.gz #下载<br /> tar zxf virt-what-1.11.tar.gz #解压<br /> cd virt-what-1.11 #进入目录<br /> ./configure #设置<br /> make && make install #编译安装
  </p>
  
  <p style="margin: 0px 0px 16px;">
    理论上是可以操作没有问题的，但是在执行make && make install的时候会出现&#8221;make: *** No targets specified and no makefile found&#8221;的错误提示。
  </p>
  
  <p style="margin: 0px 0px 16px;">
    <img class="alignnone size-full wp-image-733" style="border: 0px; vertical-align: middle; margin: 0px auto; height: auto;" src="http://www.itbulu.com/wp-content/uploads/2014/09/virt-what.jpg" alt="virt-what" width="567" height="311" />
  </p>
  
  <p style="margin: 0px 0px 16px;">
    <em>解决方法：</em>
  </p>
  
  <p style="margin: 0px 0px 5px; padding: 0px; line-height: 20px;">
    yum install gcc gcc-c++ autoconf automake
  </p>
  
  <p style="margin: 0px 0px 16px;">
    安装必备的组件支持。
  </p>
  
  <p style="margin: 0px 0px 16px;">
    然后我们在操作：
  </p>
  
  <p style="margin: 0px 0px 5px; padding: 0px; line-height: 20px;">
    ./configure<br /> make && make install
  </p>
  
  <p style="margin: 0px 0px 16px;">
    这样就可以把virt-what安装成功。
  </p>
  
  <p>
    第二、检测系统架构技术
  </p>
  
  <p style="margin: 0px 0px 5px; padding: 0px; line-height: 20px;">
    virt-what
  </p>
  
  <p style="margin: 0px 0px 16px;">
    <img class="alignnone size-full wp-image-734" style="border: 0px; vertical-align: middle; margin: 0px auto; height: auto;" src="http://www.itbulu.com/wp-content/uploads/2014/09/virt-what-2.jpg" alt="virt-what-2" width="405" height="58" />
  </p>
  
  <p style="margin: 0px 0px 16px;">
    可以检测到老蒋这台机器使用的openvz，与官方卖给我的是一样的，没有骗我。
  </p>
</div>

<p style="margin: 0px 0px 16px;">
  <p style="margin: 0px 0px 16px;">
    转载from:
  </p>
  

<p><p>
    <a href="http://www.itbulu.com/virt-what.html">http://www.itbulu.com/virt-what.html</a>
  </p></p>

</div>


  <footer class="container">
  <div class="container navigation no-print">
  <h2>Navigation</h2>
  
  

    
    <a class="prev" href="http://replace-this-with-your-hugo-site.com/2015/09/23/yzfz.html" title="咬文嚼字之阈值阀值">
      Previous
    </a>
    

    
    <a class="next" href="http://replace-this-with-your-hugo-site.com/2015/10/03/tortoisegittortoisesvn-icon.html" title="tortoisegit/tortoisesvn 图标失效问题">
      Next
    </a>
    

  


</div>

  <div class="container comments">
  <h2>Comments</h2>
  
<div id="disqus_thread"></div>
<script type="text/javascript">
  (function() {
    
    
    if (window.location.hostname == "localhost")
      return;

    var dsq = document.createElement('script'); dsq.async = true; dsq.type = 'text/javascript';
    dsq.src = '//your_disqus_shortname.disqus.com/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  })();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>


</div>

</footer>

</article>
      <footer id="main-footer" class="container main_footer">
  

  <div class="container nav foot no-print">
  

  <a class="toplink" href="#">back to top</a>

</div>

  <div class="container credits">
  
<div class="container footline">
  
  code with <i class='fa fa-heart'></i>


</div>


  
<div class="container copyright">
  
  &copy; 2016 gsymy.com.


</div>


</div>

</footer>

    </main>
    
<script type="text/javascript">
  (function() {
    
    
    if (window.location.hostname == "localhost")
      return;

    var dsq = document.createElement('script'); dsq.async = true; dsq.type = 'text/javascript';
    dsq.src = '//your_disqus_shortname.disqus.com/count.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  })();
</script>



<script src="http://replace-this-with-your-hugo-site.com/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>



<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'Your Google Analytics tracking code', 'auto');
  ga('send', 'pageview');

</script>


    
  </body>
</html>

